package com.josework.springhelloworld.exception;


import lombok.Data;
import lombok.EqualsAndHashCode;

@Data
@EqualsAndHashCode(callSuper = true)
public class BaseException extends RuntimeException{

    int code;

    String msg;

    public BaseException(int code,String msg){
        super(msg);
        this.msg = msg;
        this.code = code;
    }
}
